package ooday01;

public class Student {
    String name;
    int age;
    int grade;
    String studentId;
    String className;
    void study () {
        System.out.println(this.name+"正在学习！请勿打扰！");
    }
    void sleep (String anotherName) {
        System.out.println(this.name+"正在和"+anotherName+"睡觉！");
    }
    void sayHi () {
        System.out.println("大家好，我叫"+this.name+"，我今年"+this.age+"岁了。我的学号是："+this.studentId+"，我的班级是："+className);
    }
    Student() {
    }
    Student(String name1,int age,String studentId,String className) {
        name = name1;
        this.age = age;
        this.studentId = studentId;
        this.className = className;
    }
    Student(String name,int age,String studentId) {
        this.name = name;
        this.age = age;
        this.studentId = studentId;
    }


}
